<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        /* 筛子 */
        /* .box{
            width: 200px;
            height: 200px;
            background-color: yellow;
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            
        }
        .box:hover{
            transition: all 2s;
            transform: scale(0.5);
            transform: rotate3d(1,1,1,360deg);
        }       
        .box1{
            display: flex;
            width: 30px;
            height: 30px;
            background-color: aqua;
            border-radius:50px;
        }
        .box1:nth-child(2){
            align-self: center;
        }
        .box1:nth-child(3){
            align-self: flex-end;
        } */


        /* 动画 */
        img {
            width: 200px;
            height: 200px;
            position: fixed;
            visibility: hidden;
            margin-top: 100px;
            justify-content: space-around;
            flex-direction: column-reverse;
        }

        .left:target {
            animation: left 5s;
            -webkit-animation: left 5s;
        }

        div>img:target {
            z-index: 100;
            visibility: visible;
        }

        @keyframes left {
            to {
                left: 0px;
            }

            from {
                left: -300px;
            }
        }

        .button:target {
            animation: button 6s;
            -webkit-animation: button 6s;
        }

        @keyframes button {
            0% {
                top: 200px
            }

            50% {
                top: -100px;
            }

            100% {
                top: 50px;
            }
        }

        .pig:target {
            animation: pig 7s;
            -webkit-animation: pig 7s;
        }

        @keyframes pig {
            0% {
                transform: scale(0);
            }

            100% {
                transform: translate(3);
            }
        }

        .da:target {
            animation: da 5s;
            -webkit-animation: da 5s;
        }

        @keyframes da {
            0% {
                transform: scale(0);
            }

            100% {
                transform: scale(1) rotate(360deg);
                transition: all 3s;
            }
        }
    </style>
</head>

<body>
    <!-- 筛子 -->
    <!-- <div class="box">
        <div class="box1"></div>
        <div class="box1"></div>
        <div class="box1"></div>
    </div> -->

    <div>
        <img id="img1" class="left" src="../assets/p004.jpg" alt="" />
        <img id="img2" class="button" src="../assets/p001.jpg" alt="" />
        <img id="img3" class="pig" src="../assets/p002.jpg" alt="" />
        <img id="img4" class="da" src="../assets/p003.jpg" alt="" />
        <div class="all">
            <button>
                <a href="#img1">img1</a>
            </button>
            <button>
                <a href="#img2">img2</a>
            </button>
            <button>
                <a href="#img3">img3</a>
            </button>
            <button>
                <a href="#img4">img4</a>
            </button>
        </div>
    </div>
</body>

</html>